#ifndef RECORDAPI_HPP
#define RECORDAPI_HPP
#include <stdint.h>
#include <stdbool.h>
#include "keyvalue.hpp"
#include "variable.hpp"
#include "app_config.h"

#define RECORD_DISK									file::DISK_4
#define RECORD_EVENT_ID							   ((uint16_t)100)

#define KEYDEMO_RECORDEVENT 																\
{																														\
	{1,  2, (uint32_t)&((FaultRecordTPDF *)0)->usReason},			\
	{2,  2, (uint32_t)&((FaultRecordTPDF *)0)->usCurrent},		\
};

/** 
 * @brief        事件记录初始化
 * @retval       None
 */
extern void RecordInit(void);

/** 
 * @brief        记录事件
 * @param[in]    tEvent          事件记录
 * @retval       None
 */
extern void RecordEvent(FaultRecordTPDF *tEvent);
#endif
